Page({
    data: {
      // 筛选标签列表（包含“全部、今日、昨日、近7天、自定义”）
      tabList: [
        { label: '全部', active: true },
        { label: '今日', active: false },
        { label: '昨日', active: false },
        { label: '近7天', active: false },
        { label: '自定义', active: false },
      ],
      // 自定义时间范围（默认为当前日期）
      startDate: '2025-06-16',
      endDate: '2025-06-16',
      // 佣金记录列表（模拟数据）
      recordList: [
        { orderNo: '164241434420250616071138142853', time: '07:53:191001', amount: '2.02', status: '待结账', level: '1级' },
        { orderNo: '164241434420250616010018176525', time: '01:00:32.634698', amount: '2.02', status: '待结账', level: '1级' },
        { orderNo: '164241434420250616003921176142', time: '00:39:51.525767', amount: '2.02', status: '待结账', level: '1级' },
        { orderNo: '164241434420250616001638825421', time: '00:16:47.930801', amount: '2.02', status: '待结账', level: '1级' },
      ],
    },
  
    // 点击筛选标签时触发
    handleTabTap(e) {
      const index = e.currentTarget.dataset.index;
      const tabList = this.data.tabList.map((item, i) => {
        return { ...item, active: i === index };
      });
      this.setData({ tabList });
    },
  
    // 选择开始日期时触发
    handleStartDateChange(e) {
      this.setData({ startDate: e.detail.value });
    },
  
    // 选择结束日期时触发
    handleEndDateChange(e) {
      this.setData({ endDate: e.detail.value });
    },
  });
  